package com.example.loggingservice.service.impl;


import com.example.loggingservice.log.LogDTO;
import com.example.loggingservice.service.LogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logging")
public class LogServiceImp {

    @Autowired
    private LogMapper logMapper;
    @PostMapping ("/insert")
    public void insert(@RequestBody LogDTO log){
        logMapper.insert(log);
    }
}
